﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ServiceInterfaces.DataContracts
{
    [DataContract]
    public class TranFileInfo
    {

        /// <summary>
        /// 文件名
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        [DataMember]
        public long Length { get; set; }

        /// <summary>
        /// 文件的偏移量
        /// </summary>
        [DataMember]
        public long Offset { get; set; }

        /// <summary>
        /// 传递的字节数
        /// </summary>
        [DataMember]
        public byte[] Data { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DataMember]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 文件目的路径
        /// </summary>
        [DataMember]
        public string DesFilePath { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        [DataMember]
        public string ErorrMsg { get; set; }
        
    }
}
